package gui.popupmenu;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
import qviewer.ServiceManager;

/**
 *
 * @author SUCCESS\quannguyen
 */
public class RootAlbumPopupMenu extends JPopupMenu {

    JMenuItem addNew;

    public RootAlbumPopupMenu() {
        addNew = new JMenuItem("Add new album");
        addNew.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
                ServiceManager.getInstance().getMainForm().addAlbum();
            }
        });
        add(addNew);
    }
}
